<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta name="keywords" content="甜爱，SweetLove,甜品，甜点，生日蛋糕，冰淇淋，冰品"/>
<meta name="description" content="甜爱网上商城是专注于甜品销售、进口的网站，各种甜品、甜点齐全，还有解暑的各种冰品任顾客挑选，让他们感受到爱的温馨。">
<meta charset="utf-8">
<title>购物车</title>
<link rel="stylesheet" href="/fore/css/shoppingCar.css" >
<link rel="stylesheet" href="/fore/css/reset.css" >
<link rel="stylesheet" href="/fore/css/carts.css" >
<link rel="stylesheet" href="/fore/css/toastr/toastr.min.css" >
<script src="/fore/js/jquery-v1.10.2.min.js" type="text/javascript"></script>
</head>

<body>
<!--页头-->
<div id="headCon">
    <div th:replace="fore/include/toper::top"></div>
    <ul>
        <a href="/fore/index" ><li></li></a>
        <p>我的购物车</p>
    </ul>
</div>
<!--内容-->
<div id="contentCon">
	<ul>
    	<li>
        	<p>我的购物车</p>
            <span></span>
        </li>
    </ul>
    <section class="cartMain">
        <div class="cartMain_hd">
            <ul class="order_lists cartTop">
                <li class="list_chk">
                    <input type="checkbox" id="all" class="whole_check">
                    <label for="all"></label>
                    全选
                </li>
                <li class="list_con">商品信息</li>
                <li class="list_info">商品参数</li>
                <li class="list_price">单价（元）</li>
                <li class="list_amount">数量</li>
                <li class="list_sum">小计（元）</li>
                <li class="list_op">操作</li>
            </ul>
        </div>

        <div class="cartBox">
            <div class="shop_info">
            </div>
            <div class="order_content">

                <ul class="order_lists cart_lists" th:each="cart:${carts}" >
                    <input type="hidden" class="cart_id" th:value="${cart.id}">
                    <li class="list_chk">
                        <input type="checkbox" id="checkbox_2" name="cart" class="son_check" th:value="${cart.id}">
                        <label for="checkbox_2"></label>
                    </li>
                    <li class="list_con">
                        <div class="list_img"><a href="javascript:;"><img th:src="${cart.productPicture}"  alt=""></a></div>
                        <div class="list_text"><a href="javascript:;" th:text="${cart.productName}"></a></div>
                    </li>
                    <li class="list_info">
                        <p th:text="'规&nbsp;&nbsp;&nbsp;&nbsp;格： ' + ${cart.specName}"></p>
                    </li>
                    <li class="list_price">
                        <p class="price" th:text="'￥' + ${cart.specPrice / 100}"></p>
                    </li>
                    <li class="list_amount">
                        <div class="amount_box">
                            <a href="javascript:;" class="reduce reSty">-</a>
                            <input type="text" value="1" class="sum" readonly th:value="${cart.number}">
                            <a href="javascript:;" class="plus">+</a>
                        </div>
                    </li>
                    <li class="list_sum">
                        <p class="sum_price" th:text="'￥' + ${cart.specPrice / 100 * cart.number}"></p>
                    </li>
                    <li class="list_op">
                        <p class="del"><a href="javascript:;" class="delCart" th:cart-id="${cart.id}" >移除商品</a></p>
                    </li>
                </ul>


            </div>
        </div>

        <div class="bar-wrapper">
            <div class="bar-right">
                <div class="piece">已选商品<strong class="piece_num">0</strong>件</div>
                <div class="totalMoney">共计: <strong class="total_text">0.00</strong></div>
                <div class="calBtn"><a >结算</a></div>
            </div>
        </div>
    </section>

<!--    <section class="model_bg"></section>-->
<!--    <section class="my_model">-->
<!--        <p class="title">删除宝贝<span class="closeModel">X</span></p>-->
<!--        <p>您确认要删除该宝贝吗？</p>-->
<!--        <div class="opBtn"><a href="javascript:;" class="dialog-sure">确定</a><a href="javascript:;" class="dialog-close">关闭</a></div>-->
<!--    </section>-->

</div>

<!--页脚-->
<script src="/fore/js/carts.js" ></script>
<div th:replace="fore/include/footer::foot"></div>

</body>
</html>
